﻿<!DOCTYPE html>
<html>
<head>
    <script src="/js/header.js"></script>
    <link href="/lib/easyui/default/easyui.css" rel="stylesheet" />
    <script type="text/javascript" src="/lib/easyui/jquery.easyui.min.js"></script>
</head>
<body>
    <div class="data-wrap case" id="container">
        <div class="data-tool clearfix">
            <div class="pull-left form-inline ">
            </div>
            <div class="pull-right">
                <form class="form-inline" id="formSearch">
                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l">公司名称：</label>
                        <input class="form-control" name="companyName" type="text" autocomplete="off" />
                    </div>

                    <div class="input-group input-group-sm" style="display:none">
                        <label class="input-group-addon m5_l">订单号：</label>
                        <input class="form-control" name="orderNo" type="text" autocomplete="off" />
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l">银行名称：</label>
                        <input class="form-control" name="bankName" type="text" autocomplete="off" />
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l">银行卡号：</label>
                        <input class="form-control" name="cardNumber" type="text" autocomplete="off" />
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l">用戶名：</label>
                        <input class="form-control" name="cardName" type="text" />
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l">类型：</label>
                        <select class="form-control" id="cardType" name="cardType">
                            <option value="">请选择</option>
                            <option value="1">收款卡</option>
                            <option value="2">中转卡</option>
                            <option value="3">付款卡</option>
                            <option value="4">备用卡</option>
                        </select>
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l">启用状态：</label>
                        <select class="form-control" name="enableStatus">
                            <option value="">请选择</option>
                            <option value="1">启用</option>
                            <option value="2">禁用</option>
                        </select>
                    </div>

                    <div class="input-group input-group-sm">
                        <label class="input-group-addon m5_l">授权状态：</label>
                        <select class="form-control" name="authStatus">
                            <option value="">请选择</option>
                            <option value="1">已分配公司</option>
                            <option value="0">未分配公司</option>
                        </select>
                    </div>

                    <button type="button" class="btn btn-default btn-sm active" id="btnSearch"><span class="glyphicon glyphicon-search"></span> 搜索</button>
                    <button type="button" class="btn btn-default btn-sm gettext" id="AdvSearch">高级搜索</button>
                </form>
            </div>
        </div>
        <!--一高级搜索开始-->
        <div class="AdvSearch">
            <div class="AdvSearchcom collapse">
                <table>
                    <tbody>
                        <tr>
                            <td class="gettext">支付宝姓名：</td>
                            <td><input class="form-control" name="aliPayCardName" type="text" autocomplete="off" /></td>
                            <td class="gettext"></td>
                            <td></td>
                        </tr>
                    </tbody>
                </table>
                <div class="AdvSearchfooter t_c">
                    <button id="search" class="btn btn-default btn-sm gettext" type="button">立即搜索</button>
                    <button id="cancel" data-dismiss="modal" class="btn btn-default btn-sm gettext" type="button">取消</button>
                </div>
            </div>
        </div>
        <div class="data-easyui data-scroll">
            <div class="data-view">
                <div class="data-div-view table-responsive">
                    <table class="table" id="indexB2B"></table>
                </div>
            </div>
        </div>

    </div>
    <script src="/js/page/indexb2b.js?v=201905041054"></script>
    <script type="text/javascript">

        var pageSize = 50;

        function Tip_success(word) {
            FlashPay.UI.Tip_success(word);
        }

        $(function () {
            FlashPay.UI.Triggerbox({
                btnAdvSearch: '#AdvSearch',
                searchCallBack: function () {
                    window.currentPage = null;
                    doSearch();
                },
                cancelCallBack: function () {

                }
            });
            FlashPay.UI.DataAutoHeight();

            FlashPay.UI.DoSearch();

            $("#btnSearch").click(function () {
                window.currentPage = null;
                doSearch();
            });
        });

        $(document).keyup(function (event) {
            var keycode = event.which;
            if (keycode == 13) {
                FlashPay.UI.DoSearch();
            }
        });

        function dialogOpen(obj) {
            FlashPay.UI.DialogOpen($(obj).data('href'), {
                title: $(obj).data('title'),
                width: 452,
                height: 700,
            });
        }

        //function doSearch() {

        //    var cardType = $("#cardType option:selected").val()

        //    if (cardType == 3) {
        //        //FlashPay.UI.Pager(".paging", { templateId: "paymentCardTemplate", pageSize: 15, ajax: { url: '/Bank/GetB2BPager' } });
        //    }
        //    else {
        //        //FlashPay.UI.Pager(".paging", { templateId: "otherCardTemplate", pageSize: 15, ajax: { url: '/Bank/GetB2BPager' } });
        //    }
        //}
    </script>
</body>
</html >
